<template>
  <div class="box">
    <!-- 标题 -->
    <div class="settitle">
      <router-link tag="div" to="/personal" class="setimg">
        <img src="../assets/imgs/iconse/左箭头.png" alt="" />
      </router-link>
      <div class="text"><h2>我的订单</h2></div>
    </div>

    <van-empty
      class="custom-image"
      :image="srcs"
      description="暂无订单数据"
    />
  </div>
</template>

<script>
export default {
    data() {
        return {
            srcs:  require("../assets/imgs/custom-empty-image.png"),
        };
    },
};
</script>

<style lang="scss" scoped>

.settitle {
  height: 60px;
  display: flex;
  align-items: center;
  background-color: #fff;
  box-shadow: 0px 0px 0px 1px rgba($color: #cccc, $alpha: 0.4);
  .setimg {
    height: 18px;
    position: absolute;
    left: 15px;
    img {
      height: 100%;
      display: block;
    }
  }
  .text {
    margin: 0 auto;
  }
}

.box ::v-deep .custom-image{
    position: absolute;
    top: 60px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    margin: auto 0;
}

.custom-image ::v-deep .van-empty__image {
  width: 60px;
  height: 60px;
//   background-color: #999;
}
</style>